import java.util.Scanner;
/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: xiaotutu
 * Date: 2023-08-07
 * Time: 13:06
 */
public class Test {
    public static void main(String[] args) {
        Scanner sc= new Scanner(System.in);

        int sum=0;
        int num=0;
        while(sc.hasNextInt()) {
            int tmp=sc.nextInt();
            sum+= tmp;
            num++;
        }
        System.out.println("sum ="+sum);System.out.println("avg="+sum/num);
    }
}
